<button id="gamexxx_expanderHead"><span style="color:blue" id="gamexxx_expanderSign">Mở bàn cờ xxx</span></button><div id="gamexxx_expanderContent" style="display:none">
<script>
    if (navigator.appName == 'Microsoft Internet Explorer') {
        document.write(
            '<object id="3480735099340"' +
            '    classid="clsid:CAFEEFAC-0017-0000-FFFF-ABCDEFFEDCBA"' +
            '        width="400" height="350"' +
            '        codebase="http://java.sun.com/update/1.7.0/jinstall-7u13-windows-i586.cab#Version=1,7,0,13">' +
            '    <param name="archive" value="http://sachcotuongvn-dev.appspot.com/views/plugin/1.0.0/xiangqiplugin.jar" />' +
            '    <param name="code" value="com.ltv.xiangqiplugin.views.ChessApp" />' +
            '    <param name="initPosition" value=""/>' +
            '    <param name="moveList" value=""/>' +
            '    <param name="startIndex" value="0"/>' +
            '    <param name="boardSize" value="small"/>' +
            '    <param name="language" value="VI"/>' +
            '    <param name="theme" value="1"/>' +
            '    <param name="isActive" value="true"/>' +
            '    <param name="MAYSCRIPT" value="true">' +
            '</object>');
    } else {
        document.write(
            '<embed id="3480735099340"' +
            '    type="application/x-java-applet"' +
            '    width="400" height="350"' +
            '    archive="http://sachcotuongvn-dev.appspot.com/views/plugin/1.0.0/xiangqiplugin.jar"' +
            '    code="com.ltv.xiangqiplugin.views.ChessApp"' +
            '    pluginspage="http://java.com/download/"' +
            '    initPosition=""' +
            '    moveList=""' +
            '    startIndex="0"' +
            '    boardSize="small"' +
            '    language="VI"' +
            '    theme="1"' +
            '    isActive="true"' +
            '    MAYSCRIPT="true">' +
            '</embed>');
    }
</script></div><script type="text/javascript">
$(document).ready(function(){
    $("#gamexxx_expanderHead").click(function(){
        $("#gamexxx_expanderContent").slideToggle();
        if ($("#gamexxx_expanderSign").text() == "Mở bàn cờ xxx"){
            $("#gamexxx_expanderSign").html("Đóng bàn cờ xxx")
        }
        else {
            $("#gamexxx_expanderSign").text("Mở bàn cờ xxx")
        }
    });
});
</script>